import { IMOptionsType } from "@/types/dict";
import { tabPower } from "./store";
import baseStyle from "@layout/header/style/base.module.less";
export const partyTabDict = computed(() =>
  ([] as IMOptionsType[])
    .concat(
      tabPower[0]
        ? {
            label: getProxyT("party63").value,
            value: 1,
          }
        : []
    )
    .concat(
      tabPower[1]
        ? {
            label: getProxyT("party64").value,
            value: 2,
          }
        : []
    )
);
export const partyDetailTabDict = computed<IMOptionsType[]>(() => [
  {
    label: $t("party65"),
    value: 1,
  },
  {
    label: $t("party66"),
    value: 2,
  },
]);

export const paymentMethodDict = [
  {
    label: getProxyT("party67").value,
    value: 1,
    customStyle: {
      color: baseStyle.blueBase,
      borderColor: "#91D5FF",
      backgroundColor: "#E6F7FF",
    },
  },
  {
    label: getProxyT("party68").value,
    value: 2,
    customStyle: {
      color: "#EB2F96",
      borderColor: "#FFADD2",
      backgroundColor: "#FFF0F6",
    },
  },
];

export const partyStatusDict: any = [
  {
    label: getProxyT("party69").value,
    value: 0,
    customStyle: {
      color: "#D9C300",
    },
  },
  {
    label: getProxyT("party48").value,
    value: 1,
    customStyle: {
      color: "#00D957",
    },
  },
  {
    label: getProxyT("party70").value,
    value: 2,
    customStyle: {
      color: "#D90D00",
    },
  },
  {
    label: getProxyT("party71").value,
    value: 3,
    customStyle: {
      color: "#0052D9",
    },
  },
  {
    label: getProxyT("party72").value,
    value: 4,
    customStyle: {
      color: "#120797",
    },
  },
  {
    label: getProxyT("party73").value,
    value: 5,
    customStyle: {
      color: "#7C8609",
    },
  },
];

export const signStatusDict: IMOptionsType[] = [
  {
    label: getProxyT("party74").value,
    value: 0,
  },
  {
    label: getProxyT("party75").value,
    value: 1,
  },
];

export const roleDict = [
  {
    label: getProxyT("party76").value,
    value: 1,
  },
  {
    label: getProxyT("party77").value,
    value: 2,
  },
];

export const originDict: IMOptionsType[] = [
  {
    label: getProxyT("party78").value,
    value: 1,
  },
  {
    label: getProxyT("party79").value,
    value: 2,
  },
];

export const isYesDict: IMOptionsType[] = [
  {
    label: getProxyT("party38").value,
    value: 0,
  },
  {
    label: getProxyT("party37").value,
    value: 1,
  },
];
